﻿<Window x:Class="WinBudget.Account"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:WinBudget"
        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"       
        Title="Account" Icon="/WinBudget;component/budget.ico" d:DesignHeight="300" d:DesignWidth="300" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">    
    <Grid>
        <Button Command="{Binding Path=AddAccountCommand}" Content="Add" Height="23" HorizontalAlignment="Left" Margin="191,12,12,12" Name="addBtn" VerticalAlignment="Top" Width="75" />
        <Button Content="Edit" Height="23" HorizontalAlignment="Left" Margin="191,59,12,12" Name="editBtn" VerticalAlignment="Top" Width="75" Click="editBtn_Click" />
        <Button Content="Delete" Height="23" HorizontalAlignment="Left" Margin="191,106,12,12" Name="deleteBtn" VerticalAlignment="Top" Width="75" Click="deleteBtn_Click" />
        <Button Content="Close" Height="23" HorizontalAlignment="Left" Margin="191,153,12,12" Name="closeBtn" VerticalAlignment="Top" Width="75" Click="closeBtn_Click" />
        <ListBox ItemsSource="AccountList" Height="164" HorizontalAlignment="Left" Margin="12" Name="accountListBox" VerticalAlignment="Top" Width="161">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=AccountName}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <TextBox Text="{Binding Path=AccountName, UpdateSourceTrigger=PropertyChanged}" Height="23" HorizontalAlignment="Left" Margin="12,182,0,5" Name="accountaddTextBox" VerticalAlignment="Top" Width="120" />
    </Grid>
</Window>
